package com.xs.project.mapper;

import com.xs.project.pojo.vo.CourseResourceRequest;
import com.xs.project.pojo.vo.StuDeviceVo;
import com.xs.project.pojo.vo.StudentDeviceRequest;
import com.xs.project.pojo.vo.StudentHomeWorkReq;
import com.xs.project.pojo.vo.resp.CourseResourceResp;
import com.xs.project.pojo.vo.resp.StudentCourseDeviceResp;
import com.xs.project.pojo.vo.resp.StudentHomeWork;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 等风来
 * @since 2024-08-13
 */
@Mapper
@Repository
public interface CourseResourceMapper {

    List<CourseResourceResp> selectResource(CourseResourceRequest request);

    List<StudentCourseDeviceResp> selectStudentDevices(StudentDeviceRequest request);

    List<StudentHomeWork> selectStudentHomeWork(StudentHomeWorkReq request);


    void handleStudentHomeWork(@Param("id")Integer id, @Param("homeWorkPoint") String homeWorkPoint,@Param("status") String status);

    void handleDeviceList(@Param("id") Integer id,@Param("teacherDesc") String teacherDesc);

    void insertDeviceList(StuDeviceVo request);

    void insertStudentHomeWork(StudentHomeWorkReq request);

    void insertResourceList(CourseResourceResp request);

    void updateResourceList(CourseResourceResp request);
}
